//
//  HeaderView.m
//  Homepwner
//
//  Created by 赵小燕 on 16/12/27.
//  Copyright © 2016年 xiaoyanzhao. All rights reserved.
//

#import "HeaderView.h"

@interface HeaderView () {
    
    UIButton *buttonEdit;
    UIButton *buttonNew;
}

@end

@implementation HeaderView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor lightGrayColor];
        buttonEdit = [[UIButton alloc] initWithFrame:CGRectMake(140, 40, 40, 10)];
        [buttonEdit setTitle:@"编辑" forState:UIControlStateNormal];
        buttonNew = [[UIButton alloc] initWithFrame:CGRectMake(200, 40, 40, 10)];
        [buttonNew setTitle:@"新建" forState:UIControlStateNormal];
        [self addSubview:buttonEdit];
        [self addSubview:buttonNew];
    }
    return self;
}


@end
